package com.common.streamUse;

/**
 * @author Devin
 * @program my-java
 * @description stream工具类的测试类
 * @date 2024-01-30 10:05
 **/
public class SUTset {
    public static void main(String[] args) {
//        HashSet<SUBean> suBeanSet = new HashSet<>();
//        suBeanSet.add(new SUBean(1L, "圣骑士", 5));
//        Map<Long, SUBean> sUBeanMap1 = StreamUtil.toMap(suBeanSet, SUBean::getID);
//        System.out.println("测试 -- toMap1: " + sUBeanMap1);
//        Map<Long, Integer> sUBeanMap2 = StreamUtil.toMap(suBeanSet, SUBean::getID, SUBean::getAge);
//        System.out.println("测试 -- toMap2: " + sUBeanMap2);
//
//        Map<Long, String> convertMap1 = StreamUtil.convertMapValue(sUBeanMap1, (K, V) -> "名称：" + V.getName());
//        System.out.println("测试convMapValue -- convertMap1: " + convertMap1);

        String s = "{19510:0|0,19500:1|991,19501:2|991}";

        if(s.contains(":0|")){
            System.out.println(true);
        }
    }




}
